package com.hzncc.flowable_diboot.entity.processtransaction;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 我的待办 Entity 定义
 * @author MyName
 * @version 1.0
 * @date 2024-11-04
 * Copyright © MyCorp
 */
@TableName("mdl_process_task")
@Getter
@Setter
@Accessors(chain = true)
public class ProcessTask extends BaseModel {

    private static final long serialVersionUID = 1232986598891744098L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 业务标题
     */
    @Length(max = 100, message = "业务标题长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String businessTitle;

    /**
     * 当前节点
     */
    @Length(max = 100, message = "当前节点长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String currentNode;

    /**
     * 类型
     */
    @TableField()
    private String type;

    /**
     * 节点办理人
     */
    @Length(max = 100, message = "节点办理人长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String nodeAgent;

    /**
     * 节点办理人姓名
     */
    @Length(max = 100, message = "节点办理人姓名长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String nodeAgentName;

    /**
     * 开始时间
     */
    @TableField()
    private LocalDateTime startTime;

    /**
     * 任务定义key
     */
    @Length(max = 100, message = "任务定义key长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String taskDefinitionKey;

    /**
     * 流程定义id
     */
    @Length(max = 100, message = "流程定义id长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String processDefinitionId;

    /**
     * 流程实例id
     */
    @Length(max = 100, message = "流程实例id长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String processInsId;

    /**
     * 优先级
     */
    @TableField()
    private Long priority;

    /**
     * 是否终止
     */
    @TableField()
    private Boolean suspended;
}
